﻿using Ops.Host.Common.Domain;
using Ops.Host.Core.Models;

namespace Ops.Host.Core.Services;

public interface ICardInfoService : IDomainService
{
    bool Exist(string cardNo);

    List<CardInfo> GetAll();

    Task<(List<CardInfo> items, long count)> GetPagedAsync(CardInfoFilter filter, int pageIndex, int pageItems);

    void Enable(int id);

    void Disable(int id);

    Task<CardInfo> AddCardInfoAsync(CardInfo model);

    Task UpdateCardInfoAsync(CardInfo model);

    void DeleteCardInfo(int id);
}
